package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_comments")
public class CommentsBean {
    @TableId(value = "pk_commId",type = IdType.AUTO)
    private Integer id;
    @TableField("c_content")
    private String content;
    @TableField(exist = false)
    private ProductBean productBean;
    @TableField("fk_proId")
    private Integer proId;
    @TableField(exist = false)
    private UserBean userBean;
    @TableField("fk_userId")
    private Integer userId;


    public CommentsBean( String content) {

        this.content = content;
    }

    public CommentsBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProId() {
        return proId;
    }



    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ProductBean getProductBean() {
        return productBean;
    }

    public void setProductBean(ProductBean productBean) {
        this.productBean = productBean;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }

    @Override
    public String toString() {
        return "commentsBean{" +
                "id=" + id +
                '\'' +
                ", content='" + content + '\'' +
                ", productBean=" + productBean +
                ", userBean=" + userBean +
                "}\n";
    }
}
